package com.aier.admin_new.service;

import java.util.List;
import java.util.Map;

import com.aier.admin_new.entity.SchoolMasterEmail;
import com.aier.admin_new.entity.SchoolMasterEmailDetail;

public interface ISchoolMasterEmailService {

	/**
	 * 校长信箱留言
	 * @param suid
	 * @param nickname
	 * @param headimg
	 * @param content
	 * @param sid
	 * @return
	 */
	long insertEmail(Long suid,String nickname,String headimg,String content,Integer sid);
	
	/**
	 * 校长回复留言
	 * @param suid
	 * @param sid
	 * @param content
	 * @param smeid
	 * @return
	 */
	long insertSchoolMasterEmailDetail(Long suid,Integer sid,String content,Integer smeid);
	
    /**
     * 清空校长信箱
     * @param uid
     * @return
     */
    int deleteEmail(int uid);
    
    /**
     * 获取信箱列表
     * @param sid
     * @return
     */
    List<SchoolMasterEmail> searchEmail(int sid);
    
    
  /**
   * 
   * @param sid
   * @param suid
   * @return
   */
    int searchEmailCount(int sid,long suid);
    
	/**
	 * @param sid
	 * @param suid
	 * @return
	 */
    List<SchoolMasterEmail> searchEmail(int sid,long suid);
    
    
	/**
	 * 获取详情
	 * @param smeid
	 * @param sid
	 * @return
	 */
    List<SchoolMasterEmailDetail> searchEmailDetail(int smeid,int sid);
    
    
	/**
	 * 获取详情根据用户ID
	 * @param sid
	 * @param uid
	 * @return
	 */
    List<SchoolMasterEmailDetail> searchEmailDetailByUid(int sid,long uid);
    
}
